def findall(str_list:str,index,count):

    find = str_list.find("hello",count)
    # str_list = str_list[find+1:]
    count += find + 1
    if int(find) != int(index) or find == -1:
        findall(str_list,index,count)
    list_index.append(str_list)
    # li_find = str_li.find("hello", find + 1)
    # er_find = str_li.find("hello", li_find + 1)
    # san_find = str_li.find("hello", er_find + 1)
    # rfind = str_li.rfind("hello")
    # print(find)
    # print(li_find)
    # print(er_find)
    # print(san_find)

if __name__ == '__main__':
    str_li = "helloworldhellopythonhelloc++hellojava"
    rfind = str_li.rfind("hello")
    list_index = []
    count =0
    findall(str_li,rfind,count)
    print(list_index)